package com.mew.lobby.message.response;

import com.zebra.common.ZebraBaseMessage;
import io.netty.buffer.ByteBuf;
import lombok.*;

import java.util.List;

/**
 * @author dylin
 * @create 2021/2/1 0001
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class GoldDealConfigResponseMessage extends ZebraBaseMessage<GoldDealConfigResponseMessage> {
    List<GoldDealConfigMessage> goldDealConfigMessageList;

    @Override
    public void write(ByteBuf b) {

        writeInt(b,goldDealConfigMessageList.size());
        for(GoldDealConfigMessage goldDealConfigMessage:goldDealConfigMessageList){
            goldDealConfigMessage.write(b);
        }
    }

    @Override
    public GoldDealConfigResponseMessage read(ByteBuf byteBuf) {
        return null;
    }
}
